/* Box sizing */

* {
    box-sizing: border-box;
}

/* Reset margin and padding */
body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, dl, dd, ol, ul, figure, hr, fieldset, legend, table, th, td, form, input, textarea, button {
    margin: 0;
    padding: 0;
}

/* Reset font size and weight */
h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
    font-weight: normal;
}

/* Reset list styles */
ul, ol {
    list-style: none;
}

/* Reset hyperlink styles */
a {
    text-decoration: none;
    color: inherit;
}

/* Reset form elements */
button, input, optgroup, select, textarea {
    margin: 0;
    font: inherit;
    color: inherit;
}

/* Reset table border spacing and collapse */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Reset blockquote quotes */
blockquote, q {
    quotes: none;
}

/* Reset fieldset border */
fieldset {
    border: 0;
}

/* Reset image styles */
img {
    max-width: 100%;
    height: auto;
}

/* Reset button styles */
button {
    background: none;
    border: none;
    padding: 0;
}

/* Reset input styles */
input {
    border: none;
    outline: none;
}


/*  响应式字体大小 */


@media (max-width: 600px) {
    html {
        font-size: 14px;
    }
}

/* 当屏幕宽度小于400px时，将根元素字体大小设置为12px */
@media (max-width: 400px) {
    html {
        font-size: 12px;
    }
}